package wonders;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import wonders.config.SpringMybatisConfig1;
import wonders.mapper.UserMapper;
import wonders.pojo.User;

public class MainTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringMybatisConfig1.class);
        UserMapper bean = applicationContext.getBean(UserMapper.class);
        User user = bean.selectById(1);
        System.out.println(user);

    }
}
